package cn.xhjava.crm.workbench.service;

import cn.xhjava.crm.workbench.domain.Customer;
import cn.xhjava.crm.workbench.domain.DateDataMapVO;

import java.util.List;
import java.util.Map;

/**
 * @author Xiahu
 * @create 2023/7/18 0018
 */
public interface CustomerService {
    List<Customer> selectForPage(Map<String, Object> map) throws Exception;

    int selectCountForPage(Map<String, Object> map) throws Exception;

    int delete(String[] id) throws Exception;

    Customer selectById(String id) throws Exception;

    int add(Customer customer) throws Exception;

    Customer selectDetailById(String id) throws Exception;

    int update(Customer customer) throws Exception;

    List<String> queryCustomerNamesLikeName(String customerName) throws Exception;

    DateDataMapVO queryCustomerCountGroupByCreateTime() throws Exception;

}
